/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package lancerDes;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import javax.jws.WebService;

/**
 *
 * @author administrator
 */
@WebService()
public class lancer_les_des {
    public List<Integer> lancer(int nb_des) {
        List<Integer> retour = new ArrayList<Integer>();
        Random r = new Random();
        for (int i=0; i < nb_des; i++) {
            retour.add(r.nextInt(6)+1);
        }
        return retour;
    }
}
